#ifndef __GAME_SCENE_H__
#define __GAME_SCENE_H__

#include "cocos2d.h"

#include "Box2D/Box2D.h"

#include "SimpleAudioEngine.h"
#include "Sprite3D.h"

using namespace cocos2d;

class GameScreen : public CCLayer
{
public:
	GameScreen();
	~GameScreen();

	virtual bool init();  
	virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
	virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);

	void onEnter();
	void onExit();
	void onEnterTransitionDidFinish();

	virtual void update(ccTime delta);  
	void updatePlayer(ccTime delta);  

	char* linkFileName(char *pathname, char *filename);

	static cocos2d::CCScene* scene();

	LAYER_NODE_FUNC(GameScreen);

	Sprite3D* player;
	float player_v;
	float player_a;

	CCTMXTiledMap* tileMap;
	float map_x;
	float map_y;
};

#endif  // __GAME_SCENE_H__
